lookTime(document.getElementById("look-time").children[1]);
// 生成时间并显示的function
function lookTime(obj) {
	let theDate = new Date();
	let y1 = 0,
		m1 = 0,
		d1 = 0,
		h1 = 0,
		m2 = 0,
		s1 = 0;
	let weeks = [
		"星期天（Sunday）", "星期一（Monday）",
		"星期二（Tuesday）", "星期三（Wednesday）",
		"星期四（Thursday）", "星期五（Friday）", "星期六（Saturday）"
	];
	let weekDay = "";
	// 以上是代表：年、月、日、时、分、秒 的变量

	(function produceTime() {
		theDate = new Date();
		y1 = theDate.getFullYear();
		m1 = theDate.getMonth() + 1;
		d1 = theDate.getDate();
		h1 = theDate.getHours();
		m2 = theDate.getMinutes();
		s1 = theDate.getSeconds();
		weekDay = weeks[theDate.getDay()];
		h1 = h1 > 9 ? h1 : ("0" + h1);
		m2 = m2 > 9 ? m2 : ("0" + m2);
		s1 = s1 > 9 ? s1 : ("0" + s1);
		obj.innerHTML = `
					${y1 + " 年 " + m1 + " 月 " + d1 + " 日  " + h1 + " : " + m2 + " : " + s1 + "<br />" + weekDay}
				`;
		setTimeout(function(obj) {
			produceTime(obj);

		}, 1000);

	})(obj);
}